import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import axios from 'axios'
import { VueRecaptchaPlugin } from 'vue-recaptcha'
import { createHead } from '@unhead/vue'

import App from './App.vue'
import router from './router'

axios.defaults.withCredentials = true;
// axios.defaults.baseURL = '';

const app = createApp(App)
app.use(createPinia())
app.use(router)
app.use(createHead())
const key = import.meta.env.VITE_RECAPTCHA_SITE_KEY
console.log('captcha site key', key)
app.use(VueRecaptchaPlugin, {
    v2SiteKey: key
    // v3SiteKey: 'YOUR_V3_SITEKEY_HERE',
  })
app.mount('#app')
